// cover some element-ui styles
@import './element-variables.scss';

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-table th{
  color: #323233 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.el-table .el-table__header-wrapper th {
  background-color: #F1F3F9 !important;
}

.el-input--medium .el-input__icon {
  line-height: 32px !important;
}

.el-input__inner {
  height: 32px !important;
  line-height: 32px !important;
  border-color: $borderColor !important;
}

.el-dialog__body {
  max-height: 600px;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 15px 21px !important;
}

.el-form-item__error {
  word-break: break-all;
}

.el-form-item.two-line {
  > .el-form-item__content {
    display: flex;
    justify-content: flex-start;
    > .el-form-item {
      margin-right: 20px;
    }
  }
}

.chart-item-container {
  .el-collapse-item__wrap {
    border-left: 1px solid $borderColor;
    border-right: 1px solid $borderColor;
  }
}

.el-select {
  width: 100%;
}

.search-container {
  &.el-input {
    .el-input__suffix {
      right: -5px !important;
    }
  }
  .el-input {
    .el-input__suffix {
      right: -5px !important;
    }
  }
  .el-date-editor {
    .el-input__icon.el-range__icon {
      right: -5px !important;
    }
  }
}

.el-range-editor.el-input__inner {
  padding: 3px 15px !important;
}
.el-date-editor {
  .el-range-input {
    text-align: left !important;
  }
  .el-input__icon.el-range__icon {
    position: absolute !important;
    right: 5px;
  }
}


.el-table__fixed-right-patch {
  background: #f4f4fb;
}

::-webkit-scrollbar {
  background-color: #F5F5F5; /* 设置滚动条背景色 */
  width: 12px; /* 设置滚动条宽度 */
}
::-webkit-scrollbar-thumb {
  background-color: $divideNormal !important; /* 设置滚动条滑块颜色 */
  border-radius: 6px; /* 设置滑块圆角 */
}

.hide-select-all .el-table__header-wrapper .el-checkbox {
  display: none !important;
}

.el-form-item--medium.select-org .el-form-item__content {
  line-height: 32px;
}

.el-button--primary.is-plain.is-disabled, 
.el-button--primary.is-plain.is-disabled:hover, 
.el-button--primary.is-plain.is-disabled:focus, 
.el-button--primary.is-plain.is-disabled:active {
  color: $disabledTextColor !important;
  background-color: #F7F8FA !important;
  border-color: #EBEDF0 !important;
}

.range-textarea.el-form-item {
  height: calc(100% - 375px);
}

//tooltips
.el-tooltip__popper {
  max-width: 300px;
  box-shadow: 0 10px 20px rgba($color: #000000, $alpha: 0.1);
  line-height: 20px;
  color: $textColor;
}

.el-tooltip__popper.is-light {
  background-color: white;
  border-color: transparent;
}

.el-tooltip__popper.is-light .popper__arrow {
  display: none !important;
}


.el-pagination__sizes {
  .el-select {
    margin-top: -2px;
    color: #323233;
  }
}


.delete_confirm {
  border-radius: 12px;
  .el-message-box__header {
    padding: 20px 20px 0;
  }
  .el-message-box__content {
    padding: 30px 20px;
  }
  .el-message-box__message {
    text-align: center;
    font-size: 14px;
  }
  .el-message-box__btns {
    padding: 0 20px 10px;
    .el-button {
      height: 36px;
      padding: 10px 20px;
      font-size: 14px;
    }
    .confirm_btn {
      background: $--color-primary;
    }
  }
}